home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / CIncludes / Scrap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  2.1 KB  |  107 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Scrap.h
  3.  
  4.      Contains:    Scrap Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1985-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __SCRAP__
  18. #define __SCRAP__
  19.  
  20. #ifndef __MACTYPES__
  21. #include <MacTypes.h>
  22. #endif
  23.  
  24.  
  25.  
  26. #if PRAGMA_ONCE
  27. #pragma once
  28. #endif
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33.  
  34. #if PRAGMA_IMPORT
  35. #pragma import on
  36. #endif
  37.  
  38. #if PRAGMA_STRUCT_ALIGN
  39.     #pragma options align=mac68k
  40. #elif PRAGMA_STRUCT_PACKPUSH
  41.     #pragma pack(push, 2)
  42. #elif PRAGMA_STRUCT_PACK
  43.     #pragma pack(2)
  44. #endif
  45.  
  46. /*
  47.   _________________________________________________________________________________________________________
  48.    • CLASSIC SCRAP MANAGER API
  49.   _________________________________________________________________________________________________________
  50. */
  51.  
  52.  
  53. struct ScrapStuff {
  54.     SInt32                             scrapSize;
  55.     Handle                             scrapHandle;
  56.     SInt16                             scrapCount;
  57.     SInt16                             scrapState;
  58.     StringPtr                         scrapName;
  59. };
  60. typedef struct ScrapStuff                ScrapStuff;
  61.  
  62. typedef ScrapStuff *                    PScrapStuff;
  63. typedef ScrapStuff *                    ScrapStuffPtr;
  64. EXTERN_API( ScrapStuffPtr )
  65. InfoScrap                        (void)                                                        ONEWORDINLINE(0xA9F9);
  66.  
  67. EXTERN_API( SInt32 )
  68. UnloadScrap                        (void)                                                        ONEWORDINLINE(0xA9FA);
  69.  
  70. EXTERN_API( SInt32 )
  71. LoadScrap                        (void)                                                        ONEWORDINLINE(0xA9FB);
  72.  
  73. EXTERN_API( SInt32 )
  74. GetScrap                        (Handle                 hDest,
  75.                                  ResType                 theType,
  76.                                  SInt32 *                offset)                                ONEWORDINLINE(0xA9FD);
  77.  
  78. EXTERN_API( SInt32 )
  79. ZeroScrap                        (void)                                                        ONEWORDINLINE(0xA9FC);
  80.  
  81. EXTERN_API( SInt32 )
  82. PutScrap                        (SInt32                 length,
  83.                                  ResType                 theType,
  84.                                  const void *            source)                                ONEWORDINLINE(0xA9FE);
  85.  
  86.  
  87. #if PRAGMA_STRUCT_ALIGN
  88.     #pragma options align=reset
  89. #elif PRAGMA_STRUCT_PACKPUSH
  90.     #pragma pack(pop)
  91. #elif PRAGMA_STRUCT_PACK
  92.     #pragma pack()
  93. #endif
  94.  
  95. #ifdef PRAGMA_IMPORT_OFF
  96. #pragma import off
  97. #elif PRAGMA_IMPORT
  98. #pragma import reset
  99. #endif
  100.  
  101. #ifdef __cplusplus
  102. }
  103. #endif
  104.  
  105. #endif /* __SCRAP__ */
  106.  
  107.